<?php

namespace app\admin\services;

use app\admin\model\AboutModel;

class AboutService extends BaseService
{
    public function save($param = [], $id)
    {
        if ($id == 0) {
            return AboutModel::makeInstance()->mInsert($param);
        }else{
            return AboutModel::makeInstance()->mUpdate($param,$id);
        }
    }

    public function getInfoById($field = ['id'], $id)
    {
        return AboutModel::makeInstance()->getInfoById($field, $id);
    }
}